﻿using AutoMapper;
using XieCan.Core.Entity;
using XieCan.Core.DTO;

namespace XieCan.Core.Mapper
{
  public class MapperProfile : Profile
  {
    public MapperProfile()
    {
      CreateMap<AddressEntity, AddressListModel>();
      CreateMap<AddressEntity, AddressSingleModel>();
      CreateMap<AddressCreateModel, AddressEntity>();
      CreateMap<AddressUpdateModel, AddressEntity>();

      CreateMap<AccountEntity, AccountListModel>();
      CreateMap<AccountEntity, AccountSingleModel>();
      CreateMap<AccountCreateModel, AccountEntity>();
      CreateMap<AccountUpdateModel, AccountEntity>();
    }
  }
}
